# app.py
import dash
from dash import dcc, html
import plotly.express as px

# 创建 Dash 应用
app = dash.Dash(__name__)

# 创建布局
app.layout = html.Div([
    html.H1("Hello, Dash!"),
    dcc.Graph(
        figure=px.bar(x=[1, 2, 3], y=[10, 11, 12])
    )
])

server = app.server

# 启动应用
if __name__ == '__main__':
    app.run_server(debug=True)
